package com.mes.service.lc;

import java.util.List;

import com.mes.entity.lc.CheckStock;
import com.mes.entity.lc.CheckStockDetail;

/**
 * 盘点 service 接口层
 * @author Administrator
 *
 */
public interface CheckStockService {

	/**
	 * 盘点单分页查询
	 * @param checkStock
	 * @return
	 */
	List<CheckStock> selectfycs(CheckStock checkStock);

	/**
	 * 盘点单分页查询总数
	 * @param checkStock
	 * @return
	 */
	int selectfycscont(CheckStock checkStock);

	/**
	 * 添加盘点单
	 * @param checkStock
	 * @return
	 */
	Integer addpdd(CheckStock checkStock);

	/**
	 * 删除盘点单
	 * @param checkStock
	 */
	void deletepdd(CheckStock checkStock);

	/**
	 * 添加盘点单详情
	 * @param csd
	 */
	void addCheckStockDetail(CheckStockDetail csd);

	/**
	 * 盘点单详情查询
	 * @param checkStockDetail
	 * @return
	 */
	List<CheckStockDetail> selectfycsc(CheckStockDetail checkStockDetail);

	/**
	 * 盘点单详情总数
	 * @param checkStockDetail
	 * @return
	 */
	Integer selectfycsccont(CheckStockDetail checkStockDetail);

	/**
	 * 盘点单详情修改
	 * @param checkStockDetail
	 */
	void updatexiangq(CheckStockDetail checkStockDetail);

	/**
	 * 根据主键查询盘点单
	 * @param id
	 * @return
	 */
	CheckStock selectPanid(Long id);

	/**
	 * 盘点单修改
	 * @param checkStock
	 */
	void updatepdd(CheckStock checkStock);

}
